<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@page import="com.mobilottery.ui.ValidationForm"%>
<%@page import="java.util.Date"%>
<html xmlns="http://www.w3.org/1999/xhtml">
<%@ include file="/pages/template/page-begin.jspf" %>
<%
	_pageTitle = "Scheduler | Admin"; 
	_pageId = "scheduledgames"; 
	_mainPageId = "admin"; 
%>
<%@ include file="/pages/template/head-begin.jspf" %>
<%@ include file="/pages/template/head-end.jspf" %>

<body>
	<%@ include file="/pages/template/content-begin.jspf" %>
	<%@ include file="/pages/admin/admin-bar-left.jspf" %>
	
	<div class="fillContent">	
	<div id="content">	
	<div class="contentFillBox">
			<h3>Scheduled Update</h3>
			<% 
				Date schedule = ((LotterySystemSimulator)GameProvider.getInstance().getLotterySystem()).getNextUpdateSchedule();
				String scheduleString = null;
				if(schedule!=null)
				{
					scheduleString = ValidationForm.DATE_FORMAT.format(schedule);
			%>	
				Next game update is scheduled to <%=scheduleString%>
			<%
				}
				else
				{
			%>
					Currently there are no future games requiring update. 
			<% } %>
	</div>
	</div>
	</div>

	<jsp:include page="/pages/template/content-end.jspf" />
	
</body>
</html>
